<?php
namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class MemberIntegralLog extends Model
{
    use HasDateTimeFormatter;

    protected $table = 'member_integral_log';

    protected $primaryKey = 'id';

    protected $fillable = [
        'member_id', // 用户id
        'type', // 变更类型
        'change', // 变更数目
        'content', // 内容
        'mini_type', //小程序类型
    ];

    public function member()
    {
        return $this->belongsTo(Member::class, 'member_id', 'id');
    }
}
